package com.objects;

import android.os.Parcel;
import android.os.Parcelable;

public class Group implements Parcelable {
	private long ID;
	private String title;

	public long getID() {
		return ID;
	}

	public void setID(long iD) {
		ID = iD;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public Group(Parcel in) {
		readFromParcel(in);
	}

	public Group() {
	}

	@Override
	public void writeToParcel(Parcel out, int flags) {
		out.writeLong(ID);
		out.writeString(title);
	}

	protected void readFromParcel(Parcel in) {
		ID = in.readLong();
		title = in.readString();
	}

	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
		public Group createFromParcel(Parcel in) {
			return new Group(in);
		}

		public Group[] newArray(int size) {
			return new Group[size];
		}
	};

}
